﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Frogism.Core.Golf;
using NUnit.Framework;

namespace Frogism.Tests.Golf
{
    [TestFixture]
    public class CourseTest
    {
        [Test]
        public void CreateCourse()
        {
            var c = new Course();
            Assert.IsNotNull(c);

        }
        [Test]
        public void SetCourseName()
        {
            var c = new Course();
            c.Name = "Test Course";
            Assert.AreEqual("Test Course", c.Name);
        }
        [Test]
        public void SetState()
        {
            var c = new Course();
            c.State = UsState.Wisconsin;
            Assert.AreEqual(UsState.Wisconsin, c.State);
        }
        [Test]
        public void CreateTee()
        {
            var c = new Course();
            var t = new Tee();
            t.Label = "Blue";
            t.Rating = 72.1m;
            t.Slope = 140;
            c.AddTee(t);
            Assert.AreEqual(1,c.Tees.Count);
        }
    }
}
